package ExerciseThree;

public class Student extends Person {

	String major;
	int number;
	
	public Student()
	{
		
	}
	
	public Student(String major,int number)
	{
		this.major = major;
		this.number = number;
	}
	
	public void study()
	{
		System.out.println("学习，学的是专业是"+major);
	}
	
	public void sleep()
	{
		System.out.println("学生应该每天睡够八个小时");
	}
	public void show()
	{
		//sleep();
		//super.sleep();
	}
}
